import request from '@/utils/request';

export function get(roleId) {
  const params = {
    page: 0,
    size: 999,
    roleId
  };
  return request({
    url: 'rest/api/member',
    method: 'get',
    params
  });
}
export function add(data) {
  return request({
    url: 'rest/api/member',
    method: 'post',
    data
  });
}

export function del(id) {
  return request({
    url: 'rest/api/member/' + id,
    method: 'delete'
  });
}

export function edit(data) {
  return request({
    url: 'rest/api/member',
    method: 'put',
    data
  });
}
export default { add, edit, del };
